package com.xgpro.pc.handleaffairs.service;

import com.xgpro.common.results.ResponseResult;
import com.xgpro.domain.handleaffairs.dto.HandleAffairsDto;
import com.xgpro.domain.handleaffairs.dto.HandleAffairsUpload;
import com.xgpro.domain.handleaffairs.vo.HandleAffairsVo;

import java.io.IOException;

/**
 * @author xy
 * @version 1.0
 * @date 2019/10/15 20:15
 */
public interface HandleAffairsService {
    /**
     * 查询文件列表
     * @param handleAffairsDto
     * @return
     */
    HandleAffairsVo qryHandleAffairsList(HandleAffairsDto handleAffairsDto);

    /**
     * 删除文件
     * @param id
     * @return
     */
    Integer deleteByHandleAffairsId(Integer id);

    /**
     * 上传文件
     * @param handleAffairsUpload
     * @return
     */
    Integer insertHandleAffairs(HandleAffairsUpload handleAffairsUpload) throws IOException;

    /**
     * 下载文件
     * @param id
     * @return
     */
    ResponseResult downloadHandleAffairs(Integer id);
}
